<?php
namespace app\common\model;
use think\Model;
class CertificationRealname extends Base
{
   protected $autoCheckFields = true;

 //通过ID获得信息
   public function getCertificationRealnameById($id){
   	 $where['id'] = $id;
     return $this->where($where)->find();
    }
//判断
   public function getNoAuditById($id){
     $where['id'] = $id;
     $where = "id  = '$id' and status > 0 ";
     return $this->where($where)->find();
    }

}
